<?php

namespace App\services;

use Illuminate\Support\Facades\Auth;

class BaseServices
{
    protected $resData;
    protected $user;
    protected $limit;
    protected $page;

    public function __construct()
    {
        $this->user    = Auth::user();
        $this->page    = request()->get('page') ?: 1;
        $this->limit   = request()->get('limit') ?: 10;
        $this->resData = ['code' => 200, 'data' => [], 'msg' => '成功', 'count' => 0];
    }
}